package com.fruit.system.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
 * 自定义消息数据载体
 * @author Administrator
 *
 */
public class JSON implements Serializable
{

	private static final long serialVersionUID = -677953803200919240L;
	private Object data;
	private int status;
	private Map<String,String> errors=new HashMap<String,String>(0);
	private String msg;
	public Map<String, String> getErrors()
	{
		return errors;
	}
	public void addErrors(Map<String, String> errors)
	{
		this.errors = errors;
	}
	public void addError(String errorName,String errorValue)
	{
		this.errors.put(errorName, errorName);
	}
	
	
	public Object getData()
	{
		return data;
	}
	public void setData(Object data)
	{
		this.data = data;
	}
	public String getMsg()
	{
		return msg;
	}
	public void setMsg(String msg)
	{
		this.msg = msg;
	}
	public int getStatus()
	{
		return status;
	}
	public void setStatus(int status)
	{
		this.status = status;
	}
	
}
